def DayUp(df):
    dayup = 1.0
    for i in range(365):
        if i % 7 in [0]:
            dayup = dayup
        else:
            dayup = dayup * (1 + df)
    return dayup

dayfactor = eval(input("请输入每天水平增加值N:"))
dayup = DayUp(dayfactor)
print("工作六天水平不降的年终值为：{:.3f}".format(dayup))
